package com.tools.repository;

import com.tools.model.entity.UserMsgRelEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserMsgRepository extends JpaRepository<UserMsgRelEntity, Long>, JpaSpecificationExecutor<UserMsgRelEntity> {
    List<UserMsgRelEntity> findByTo(String userid);

    UserMsgRelEntity findById(Integer id);

    int countByToAndStatus(String userid,int a);

}
